import wx


class MyClient(wx.Frame):
    def __init__(self, parent, my_id, title):
        wx.Frame.__init__(self, parent, my_id, title, size=(300, 200))
        self.CreateStatusBar()
        self.SetStatusText("欢迎使用")
        self.panel = wx.Panel(self)
        self.button = wx.Button(self.panel, label="点击", pos=(100, 100))
        self.button.Bind(wx.EVT_BUTTON, self.on_click)

    def on_click(self, event):
        print("点击了按钮,", self)


if __name__ == '__main__':
    a = wx.App()
    MyClient(None, 100, "测试").Show()
    a.MainLoop();
